raar.process.sensor
Class RAObjectSensor

java.lang.Object
  extended byraar.process.RAProcess
      extended byraar.process.sensor.RASensor
          extended byraar.process.sensor.RARegionSensor
              extended byraar.process.sensor.RARegionSensor_Pie
                  extended byraar.process.sensor.RAObjectSensor
All Implemented Interfaces:
java.io.Serializable

public class RAObjectSensor
extends RARegionSensor_Pie

A sensor with a response to objects of a certain class within a pie-piece- shaped region. Returns the distance to the nearest object of a certain class, relative to the radius of the pie.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.process.sensor.RASensor
emulateRegisterNames, emulateRegisterObjects, output, outputName
 
Fields inherited from class raar.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Constructor Summary
RAObjectSensor(RAAgent agent)
          Construct the sensor.
 
Method Summary
 java.lang.String explain()
          Explain what the sensor does.
 java.lang.String getClassName()
          Get class name.
 java.awt.Color getColor()
          Get color.
 void setClassName(java.lang.String className)
          Set class name.
 java.lang.String toString()
          String representation.
 
Methods inherited from class raar.process.sensor.RARegionSensor_Pie
getDirection, getRadius, getRegion, getSectionWidth, setDirection, setRadius, setSectionWidth
 
Methods inherited from class raar.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, set, setAgent, setOutput, setSourceCode, suppliesOutput
 
Methods inherited from class raar.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RAObjectSensor

public RAObjectSensor(RAAgent agent)
Construct the sensor.

Method Detail

setClassName

public void setClassName(java.lang.String className)
Set class name.


getClassName

public java.lang.String getClassName()
Get class name.


getColor

public java.awt.Color getColor()
Get color.

Overrides:
getColor in class RASensor

toString

public java.lang.String toString()
String representation.

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Explain what the sensor does.

Specified by:
explain in class RASensor